package com.njtoyo.taxi.admin.service.business.geo;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.njtoyo.taxi.admin.mapper.master.entity.City;
import com.njtoyo.taxi.admin.rest.presenter.business.geo.AllListPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.business.city.CityCreateWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.business.city.CityQueryWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.business.city.CityUpdateWrapper;
import com.taxi.entity.common.RestResult;
import com.njtoyo.taxi.entity.backend.AdminUser;

import java.util.List;

public interface CityService {

    RestResult<IPage<City>> getList(CityQueryWrapper wrapper);

    RestResult create(CityCreateWrapper wrapper);

    RestResult<Boolean> update(Long id, CityUpdateWrapper wrapper);

    RestResult<List<AllListPresenter>> getAll(AdminUser adminUser);

}

